package com.ttc.ssm.po;

import com.ttc.ssm.utils.DateUtils;

import java.util.Date;

/**
 * Created by Hui on 2016/8/16.
 */
public class Invite {
    private Integer invite_id;
    private Integer resume_id;
    private Integer job_id;
    private Integer company_id;
    private Integer customer_id;
    private int status;
    private Date date_added;
    private String date_added_string;

    private Job job;
    private Company company;
    private SalaryType salaryType;
    private City city;

    public SalaryType getSalaryType() {
        return salaryType;
    }

    public void setSalaryType(SalaryType salaryType) {
        this.salaryType = salaryType;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public Integer getInvite_id() {
        return invite_id;
    }

    public String getDate_added_string() {

        if(date_added!=null) {

            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

            date_added_string = format1.format(date_added);

        }

        return date_added_string;
    }

    public Date getDate_added() {
        return date_added;
    }

    public int getStatus() {
        return status;
    }

    public Integer getCustomer_id() {
        return customer_id;
    }

    public Integer getCompany_id() {
        return company_id;
    }

    public Integer getJob_id() {
        return job_id;
    }

    public Integer getResume_id() {
        return resume_id;
    }

    public void setInvite_id(Integer invite_id) {
        this.invite_id = invite_id;
    }

    public void setDate_added_string(String date_added_string) {
        this.date_added_string = date_added_string;
    }

    public void setDate_added(Date date_added) {
        this.date_added = date_added;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setCustomer_id(Integer customer_id) {
        this.customer_id = customer_id;
    }

    public void setCompany_id(Integer company_id) {
        this.company_id = company_id;
    }

    public void setJob_id(Integer job_id) {
        this.job_id = job_id;
    }

    public void setResume_id(Integer resume_id) {
        this.resume_id = resume_id;
    }
}
